package cn.tedu.submarine;

import javax.swing.*;
import java.util.Random;

//水雷
public class Mine extends SeaObject{

    /**构造方法*/
    public Mine(int x,int y){
        super(11,11,x,y,1);
    }
    public void step(){
            y -= speed;
    }

    public ImageIcon getImage(){
        if(isLive()){
            return Images.mine;
        }else{
            return null;
        }
    }

    public Boolean isOutOfBounds() {
        return this.y<=150-this.height;
    }
}
